<% pretty_name = " ".join([p.capitalize() for p in c.project.split("_")]) %>

<h3>Environments for ${pretty_name}</h3>
<div id="environments">
<ul>
  % for env in c.environments['all']:
    % if env in c.environments['valid']:
    <li class="connected">${h.link_to_remote(env.capitalize(), dict(
              url=h.url(controller="managers", action="make_install_form", id="%s[%s][%s]" % (c.manager.location, c.project, env)),
              update="install_form",
              complete=h.visual_effect("appear", duration=1),
              ))}
    </li>
    % else:
      <li class="disconnected">${env.capitalize()}</li>
    % endif
  % endfor
</ul>
</div>